*{
    margin: 0;
    padding: 0;
}
div:first-child{
    width: 6em;
    height: 30px;
    line-height: 30px;
    background-color: blue;
    border-radius: 5px;
    text-align: center;
    color: white;
    margin: 100px 0px 0px 100px;
    position: relative;
    
}
div:first-child::before{
    position: absolute;
    display: block;
    width: 0px;
    height: 0px;
    content: '';
    border: 10px solid blue;
    border-bottom-color:transparent ;
    border-right-color: transparent;
    border-top-color: transparent;
    right:-19px;
    top: 6px;
}
div:nth-child(2){
    position: relative;
    height: 30px;
}


div:nth-child(2):hover::after{
    position: relative;
    display: block;
    width: 0px;
    height: 0px;
    content: '';
    border: 7px solid blue;
    border-top-color:transparent ;
    border-right-color: transparent;
    border-left-color: transparent;
    top: 10px;
    margin-right: 2px;
} 
div:nth-child(2):hover::before{
    content: '';
    background-color: blue;
    width: 4em;
    height: 2px;
    position: absolute;
    top: 24px;
    left: 0px;
}